package com.lnking.lnkingplace.mapper;

import com.lnking.lnkingplace.model.dto.isolation.room.PersonDto;
import com.lnking.lnkingplace.model.dto.isolation.room.RoomCount;
import com.lnking.lnkingplace.model.dto.isolation.room.RoomListDto;
import com.lnking.lnkingplace.model.entity.IsolationRoom;
import com.lnking.starter.mybatis.mapper.CustomBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangqt
 * @since 2022-08-27
 */
public interface IsolationRoomMapper extends CustomBaseMapper<IsolationRoom> {

    RoomCount queryRoomCount(String placeId);

    List<RoomListDto> queryAll();

    void updateStatus(@Param("placeId") String placeId,
                      @Param("roomNumber") String roomNumber,
                      @Param("useStatus") String useStatus);

    PersonDto queryPerson(String placeId, String roomNumber);
}
